package com.lex.data.admin.model;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.sql.Timestamp;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 平台用户表
 * </p>
 *
 * @author lex QQ:609381308
 * @since 2024-07-31
 */
@Getter
@Setter
@TableName("lex_cms_users")
@Schema(name = "LexCmsUsers", description = "平台用户表")
public class LexCmsUsers implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键，采用雪花算法进行计算出来的主键，租户id+雪花")
    private Long userId;

    @Schema(description = "用户登录账号")
    private String account;

    @Schema(description = "用户登录密码")
    private String password;

    @Schema(description = "用户手机号码")
    private String phoneNum;

    @Schema(description = "邮箱地址")
    private String email;

    @Schema(description = "所属状态: 1-有效，0-禁用")
    private Byte status;

    @Schema(description = "头像地址")
    private String avatar;

    @Schema(description = "部门ID")
    private Long deptId;

    @Schema(description = "创建时间")
    private Timestamp createTime;

    @Schema(description = "更新时间")
    private Timestamp updateTime;

    @Schema(description = "是否主账号")
    private Integer isMain;
}
